/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helpers;

/**
 *
 * @author arnaldo
 */
public class MyPoint {

    private double lat;
    private double lon;

    public double lat(){
        return this.lat;
    }

    public double lon(){
        return this.lon;
    }

    public MyPoint(double lat, double y) {
        this.lat = lat;
        this.lon = y;
    }

    public MyPoint() {
    }

    public void set(double lat, double y) {
        this.lat = lat;
        this.lon = y;
    }

    @Override
    public String toString() {
        String s = "Point(" + this.lat + " " + this.lon+")";
        return s;
    }

    public String points(){
        String s = this.lat + " " + this.lon;
        return s;
    }

    public String postgrel(){
        String s = "(" + this.lat + "," + this.lon +")";
        return s;
    }
}
